package model

import (
	"github.com/jinzhu/gorm"
)

type Note struct {
	gorm.Model
	Title   string `json:"title" gorm:"type:varchar(30);not null"`
	Content string `json:"content" gorm:"type:varchar(255);not null"`
	UserId  int    `json:"user_id" gorm:"column:user_id; type:int(10); not null; default : 0"`
	Type    int8   `json:"type" gorm:"type:tinyint(1); not null; default : 0" `
}
